<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<sj:head />
<meta http-equiv="Content-Type" content	="text/html; charset=ISO-8859-1">
<title>Manage Vendor</title>
</head>
<script type="text/javascript">
	
</script>
<body>
<sj:div id="ManageVendorDiv">
<s:actionmessage/>
	<s:form name="ManageVendor" id="ManageVendorForm" action="showVendor"
		theme="simple">

		<table width="100%" border="0" align="center" cellpadding="0"
			cellspacing="0">
			<tbody>
				<tr>
					<td style="height: 10px;"></td>
				</tr>
				<tr>
					<td align="right"><sj:submit value="CreateVendor"
						name="CreateVendor" cssClass="btnbg" href="createVendor.action"
						targets="ManageVendorDiv" formIds="ManageVendorForm"></sj:submit></td>
				</tr>
			</tbody>
		</table>

		<table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" class="gridtable">
		<tbody>
			<!--<tr>
				<th colspan="4">All Available OEM</th>
			</tr>
			-->
			<tr>
              <th width="40%">Vendor Name</th>
              <th width="20%"><strong>Country</strong></th>
              <th width="20%"><strong>State</strong></th>
              <th width="20%"><strong>Status</strong></th>
            </tr>
			<s:iterator value="vendorList">
				<!--<a href="<s:url action='addTransporter'/>"><s:property
		value="name" /></a>
	-->
				<s:url action='showVendorDetail' id="details">
					<s:param name="dto.id" value="%{id}" />
				</s:url>
				<tr class="alt">
					<td>
					<sj:a href="%{details}" targets="ManageVendorDiv"
						formIds="ManageVendorForm">
						<s:property value="name" />
					</sj:a> 
					<br />
					</td>
					<td>
					<s:property value="state.country.countryName" />
					</td>
					<td>
					<s:property value="state.stateName" />
					</td>
					<td>
					<s:property value="active" />
					</td>
					
				</tr>
			</s:iterator>
			</tbody>
		</table>
	</s:form>
</sj:div>
</body>
</html>